<?php
/**
 * @copyright Copyright (c) 2021 勾股工作室
 * @license https://opensource.org/licenses/Apache-2.0
 * @link https://www.gougucms.com
 */

namespace app\admin\validate;
use think\Validate;

class UserValidate extends Validate
{
    protected $rule = [
    'bj_code' => 'require',
    'st_code' => 'require',
    'username' => 'require',
    'password' => 'require',
    'name' => 'require',
];

    protected $message = [
    'bj_code.require' => '班级不能为空',
    'st_code.require' => '学号不能为空',
    'username.require' => '账号不能为空',
    'password.require' => '密码不能为空',
    'name.require' => '真实姓名不能为空',
];
}